<%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.*, Modelo.*, javax.swing.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%
//esto es para que no guarde en el cache la pagina
            response.setHeader("Cache-Control", "max-age=0");
            response.setHeader("Cache-Control", "no-cache");
            response.setHeader("Cache-Control", "no-store");
            response.setHeader("Pragma", "no-cache");
            response.setDateHeader("Expires", -1);
%>
<html>
    <head>
        <title>Autoevaluacion</title>



        <link href="<%=request.getContextPath()%>/css/style2.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/js/jquery-1.3.2.min.js"></script>
        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/jQuery/bdc-ddmenu-0.3/css/ddmenu.css"/>
        <script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/bdc-ddmenu-0.3/js/jquery.bdc.ddmenu.js"></script>


        <script type="text/javascript">
            $(function(){
                $('#nav > ul').ddMenu({
                    initial: 'BDC DrillDown Menu|Examples',
                    easing: 'easeOutExpo',
                    duration: 1000,
                    rootTitle: 'jQuery'
                });
                $('a[href^=http://]').attr('target', '_blank');
                $('#example').ddMenu({ rootTitle: 'Enlaces Institucionales' , easing: 'easeOutBounce' });


            });
        </script>

    </head>

    <body>
        <%
                    HttpSession s = request.getSession();
                    Persona persona = new Persona();
                    if (s.getAttribute("logged") != null && s.getAttribute("logged").equals(true)) {
                        if (s.getAttribute("persona") != null) {
                            persona = (Persona) s.getAttribute("persona");
                            //JOptionPane.showMessageDialog(null,persona.getId());
                        } else {
                            //JOptionPane.showMessageDialog(null, "mala");
                        }
        %>
        <jsp:include page="../componentes/cabecera.jsp"></jsp:include>

        <div id="page">
            <div id="page-bgtop">
                <div id="content">
                    <div class="post">
                        <div class="entry">
                            <%
                                                    if (request.getParameter("show") != null) {
                                                        String show = (String) request.getParameter("show");
                                                        if (show.equals("si")) {
                            %> Encuesta enviada con extio!
                            Gracias!<%           }
                                                    }
                            %>
                            <iframe  src ="<%=request.getContextPath()%>/fuente/newjsp.jsp" name="frame" scrolling="auto"  frameborder="0"  width="670" height="700">

                            </iframe>
                        </div>
                    </div>
                </div>
                <!-- end #content -->
                <div id="sidebar">
                    <jsp:include page="../componentes/menu2.jsp"></jsp:include>
                </div>
                <!-- end #sidebar -->
                <div style="clear: both;">&nbsp;</div>
            </div>

            <jsp:include page="../componentes/pie.jsp"></jsp:include>

        </div><!--page-->
        <%} else {
                        response.sendRedirect(request.getContextPath() + "/index.jsp");
                    }%>
    </body>
</html>
